<template>
	<view>
		<navigator open-type="reLaunch" url="/pages/index/index">跳转到首页</navigator>
		<button type="primary" @click="show">显示</button>
		<button type="warn" @click="hide">隐藏</button>
	</view>
	
</template>

<script setup>
	
	function show() {
		uni.showToast({
			title:"失败",
			icon:"error",
			image:"/static/images/xxmLogo.png",
			duration:3000,
			//mask:true
		})
	}
	function hide(){
		uni.hideToast()
	}

</script>

<style lang="scss" scoped>
	       
</style>
